package com.xdd.app01;

import java.util.List;

/**
 * @Author xdd
 * @Data 2023/11/13 11:10
 */
public class JsonString {

    /**
     * name : Jack
     * age : 18
     * gender : 男
     * info : {"height":180,"weight":180,"address":{"city":"北京"}}
     * hobby : ["吃饭","睡觉",["篮球","足球"]]
     */

    private String name;
    private int age;
    private String gender;
    private InfoBean info;
    private List<String> hobby;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public InfoBean getInfo() {
        return info;
    }

    public void setInfo(InfoBean info) {
        this.info = info;
    }

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

    public static class InfoBean {
        /**
         * height : 180
         * weight : 180
         * address : {"city":"北京"}
         */

        private int height;
        private int weight;
        private AddressBean address;

        public int getHeight() {
            return height;
        }

        public void setHeight(int height) {
            this.height = height;
        }

        public int getWeight() {
            return weight;
        }

        public void setWeight(int weight) {
            this.weight = weight;
        }

        public AddressBean getAddress() {
            return address;
        }

        public void setAddress(AddressBean address) {
            this.address = address;
        }

        public static class AddressBean {
            /**
             * city : 北京
             */

            private String city;

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }
        }
    }
}
